package com.wang.api;

import com.wang.service.ICanalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;

@RestController
@Slf4j
public class TestApi {
    @Autowired
    private ICanalService iCanalService;

//    @RequestMapping("/init/canal")
    @PostConstruct
    public void test() {
        new Thread(() -> iCanalService.testData(100)).start();
    }
}
